package lj.courseinterect.dao.i;

import lj.courseinterect.entity.AnswerInfo;
import lj.courseinterect.entity.QuestionInfo;

import java.util.List;

/**
 * Created by CatoldCui on 2015/4/20.
 */
public interface AnswerInfoDao extends Dao<AnswerInfo, Long>{
    /**
     * 按问题编号查询
     * @param queId
     * @return
     */
    List<AnswerInfo> findByQueId(Long queId);

    /**
     * 按问题编号查询,赞排序
     * @param queId
     * @return
     */
    List<AnswerInfo> queryByQueIdOrderByGood(Long queId);

    /**
     * 按学生编号查询
     * @param stuId
     * @return
     */
    List<AnswerInfo> findByStuId(Long stuId);

    /**
     * 按教师编号查询
     * @param teaId
     * @return
     */
    List<AnswerInfo> findByTeaId(Long teaId);
}
